//应用根组件
import React, { Component } from "react";
import { Route, Switch } from "react-router-dom";
import Login from "./pages/login/login";
import Admin from "./pages/admin/admin";
class App extends Component {
  render() {
    return (
  
        <Switch>
          <Route path="/login" component={Login} />
          <Route path="/" component={Admin} />
        </Switch>

    );
  }
}

export default App;
